
namespace JTZY.Model.Order.Dto
{
    /// <summary>
    /// 退款单表查询对象
    /// </summary>
    public class CorecmsbillrefundQueryDto : PagerInfo 
    {
    }

    /// <summary>
    /// 退款单表输入输出对象
    /// </summary>
    public class CorecmsbillrefundDto
    {
        [Required(ErrorMessage = "退款单ID不能为空")]
        public string RefundId { get; set; }

        [Required(ErrorMessage = "售后单id不能为空")]
        public string AftersalesId { get; set; }

        [Required(ErrorMessage = "退款金额不能为空")]
        public decimal Money { get; set; }

        [Required(ErrorMessage = "用户ID 关联user.id不能为空")]
        public long UserId { get; set; }

        [Required(ErrorMessage = "资源id，根据type不同而关联不同的表不能为空")]
        public string SourceId { get; set; }

        [Required(ErrorMessage = "资源类型1=订单,2充值单不能为空")]
        public int Type { get; set; }

        public string PaymentCode { get; set; }

        public string TradeNo { get; set; }

        [Required(ErrorMessage = "状态不能为空")]
        public int Status { get; set; }

        public string Memo { get; set; }

        [Required(ErrorMessage = "创建时间不能为空")]
        public DateTime? CreateTime { get; set; }

        public DateTime? UpdateTime { get; set; }

        [Required(ErrorMessage = "代理佣金不能为空")]
        public decimal AgentMoney { get; set; }

        public long? PId { get; set; }



        [ExcelColumn(Name = "资源类型1=订单,2充值单")]
        public string TypeLabel { get; set; }
    }
}